package com.zbkj.common.model.assistant;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 消息表
 * </p>
 *
 * @author keNan
 * @since 2025-06-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("eb_assistant_message")
@ApiModel(value="AssistantMessage对象", description="消息表")
public class AssistantMessage implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "会话ID")
    private Integer conversationId;

    @ApiModelProperty(value = "发送者类型：1-用户，2-客服")
    private Integer senderType;

    @ApiModelProperty(value = "用户ID")
    private Integer userId;

    @ApiModelProperty(value = "发送者ID")
    private Integer senderId;

    @ApiModelProperty(value = "内容类型：1-文本，2-图片，3-视频，4-商品链接，5-订单，6-售后单，21-系统消息，22-评价消息")
    private Integer contentType;

    @ApiModelProperty(value = "消息内容")
    private String content;

    @ApiModelProperty(value = "用户是否已读：0-未读，1-已读")
    private Boolean isUserRead;

    @ApiModelProperty(value = "用户阅读时间")
    private Date userReadTime;

    @ApiModelProperty(value = "管理员是否已读：0-未读，1-已读")
    private Boolean isAdminRead;

    @ApiModelProperty(value = "管理员阅读时间")
    private Date adminReadTime;

    @ApiModelProperty(value = "用户名称")
    private String userName;

    @ApiModelProperty(value = "用户头像")
    private String userAvatar;

    @ApiModelProperty(value = "客服名称")
    private String serviceName;

    @ApiModelProperty(value = "客服头像")
    private String serviceAvatar;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;


}
